package com.dfbz.demo;

import lombok.*;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */

//@ToString
//@Getter
//@Setter

@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Student {
    private String name;
    private Integer age;


    public void eat( @NonNull String food) {
        System.out.println(name + "刚刚吃了: " + food);
    }
}
